
export function SPECIAL_SEAL_40(data) {
  const {name,codeNum,text}=data
  const enterpriseName = name||'某某某科技有限公司'
  const code =codeNum|| ''
  const lineText =text|| ''

  const RADIUS = 20 // 半径
  const CIRCLE_WIDTH = 1 // 圆环宽度
  const CIRCLE_PADDING = 1.8 // 圆环内边距
  const ENTERPRISE_NAME_FONT_SIZE = 5.4 // 企业名称大小
  const CODE_FONT_SIZE = 2.8 // 编码文本大小
  const TEXT_FONT_SIZE = 3.8 // 横排文本大小
  const PENTAGONAL_STAR_RADIUS = 6 // 五角星半径
  const config={
    dpi: 300,

    height: RADIUS * 2,
    width: RADIUS * 2,
    color: 'red',
    charSpace: 0, // 文字间隔
    fontFamily: 'SimSun',
    centerX: RADIUS,
    centerY: RADIUS,
    elements: [
      {
        type: 'CIRCLE',
        radius: RADIUS - CIRCLE_WIDTH / 2,
        lineWidth: CIRCLE_WIDTH
      },
      {
        type: 'CIRCULAR_TEXT',
        text: enterpriseName,
        radius: RADIUS - (CIRCLE_WIDTH / 2) - CIRCLE_PADDING - ENTERPRISE_NAME_FONT_SIZE / 2,
        fontSize: ENTERPRISE_NAME_FONT_SIZE,
        fontScaleY: 1,
        direction: 1,
        maxAngle: 250
      },
      {
        type: 'CIRCULAR_TEXT',
        text: code,
        radius: RADIUS - (CIRCLE_WIDTH / 2) - CIRCLE_PADDING - CODE_FONT_SIZE / 2, // 中心圆半径
        fontSize: CODE_FONT_SIZE,
        direction: -1,
        centerAngle: -90,
        maxAngle: 100
      },
      {
        type: 'TEXT',
        text: lineText,
        fontSize: TEXT_FONT_SIZE,
        centerX: RADIUS,
        centerY: RADIUS + PENTAGONAL_STAR_RADIUS + TEXT_FONT_SIZE / 2 + 1,
        maxWidth: 19
      },
      {
        type: 'PENTAGONAL_STAR',
        radius: PENTAGONAL_STAR_RADIUS
      }
    ]
  }
return config
}
